Write a java program to find first digit